package com.xm.xmwa1706090.web.controller;

import com.xm.xm.dto.ResultDto;
import com.xm.xm.dto.SearchDto;
import com.xm.xmwa1706090.service.service.QbSmsService;
import com.xm.xmwa1706090.web.base.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 杭州新苗网络科技有限公司
 *
 * @author meihf
 * @create 2017/7/7
 * @description
 */
@RequestMapping("message")
@Controller
public class SmsController extends BaseController{

    @Autowired
    QbSmsService qbSmsService;

    /**
     * 发送短信
     */

    @PostMapping("/sendMessage")
    @ResponseBody
    public ResultDto sendMessage(@RequestBody SearchDto searchDto){
        return qbSmsService.sendMessage(searchDto);
    }


}
